package day0117.a;

public class Test {
    Test(){
        TV  t=new TV();
        //同包类中可以访问protected修饰的成员变量
        t.brand="PPTV";
        String b=t.getBrand();
        System.out.println(b);

        System.out.println(t.price);
        double rs=t.getPrice();
        System.out.println(rs);
    }

    public static void main(String[] args) {
        new PPTV();
    }
}
